package com.onpositive.notes.argumnets;

import com.onpositive.notes.label.providers.BasicLabelProvider;
import com.onpositive.notes.model.ITemplateModel;

public class EntityListArgumentModel extends BasicArgumentModel<EntityList, EntityListArgument> {

	public EntityListArgumentModel() {
		super();
	}

	private static final long serialVersionUID = 1951512528013840234L;

	public EntityListArgumentModel(String name, boolean isRequired) {
		super(EntityList.class, name, new BasicLabelProvider<EntityList>(EntityList.class), isRequired);
	}

	@Override
	public EntityListArgument createInstance(EntityList value, ITemplateModel<?> templateModel) {
		EntityListArgument arg = new EntityListArgument(value, this, isRequired);
		arg.setTemplateModelId( templateModel.getId() ) ;
		return arg ;
	}

}
